package com.lu.admin.controller.v1;


import com.lu.admin.service.AdUserService;
import com.lu.model.admin.dto.AdUserDto;
import com.lu.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login")
@Api(value = "平台管理端用户登录", tags = "ad_user", description = "平台管理端用户登录API")
public class AdminUserLoginController {

    @Autowired
    private AdUserService adUserService;


    @ApiOperation(value = "平台管理用户登录")
    @PostMapping("/in")
    public ResponseResult login(@RequestBody AdUserDto dto) {
        return adUserService.login(dto);
    }
}
